package com.sean.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class OrderApplication {
    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext run = SpringApplication.run(OrderApplication.class, args);
        while(true){
            System.out.println(run.getEnvironment().getProperty("user.name"));
            System.out.println(run.getEnvironment().getProperty("user.age"));
            Thread.sleep(1000);
        }
    }
}
